package day04;

import java.io.IOException;
import java.util.Date;

/**
 * @author jhj
 * @date 2022/5/12 10:49
 */
public class TestMouthDays {
    public static void main(String[] args) throws IOException {
        Date date = new Date();
        int years = date.getYear();
        int days = 0;
        int mouth = System.in.read() - 48;
        switch (mouth){
            case 1: ;
            case 3: ;
            case 5: ;
            case 7: ;
            case 8: ;
            case 10: ;
            case 12: {
                days = 31;
                break;
            }
            case 4: ;
            case 6: ;
            case 9: ;
            case 11: {
                days = 30;
                break;
            }
            case 2:{
                if ((!(years%100==0)||years%4==0)||(years%400==0))
                    days = 29;
                else days = 28;
            }
            System.out.println(days);
        }
    }
}
